// components/w-tab-control/w-tab-control.js
import reqTypes  from  '../../service/config/request.js'

Component({
    /**
     * 组件的属性列表
     */
    properties: {
      reqType: {
        type: String,
        value: '',
        observer(reqType){
          if (reqType && reqTypes[reqType]) {
            let image = this.data.image || reqTypes[reqType].image;
            let title = this.data.title || reqTypes[reqType].title;
            let button = this.data.button || reqTypes[reqType].button;
            let tip = this.data.tip || reqTypes[reqType].tip;
            this.setData({
              image,
              title,
              button,
              tip
            });
        }
      }
    },
  },
    /**
     * 组件的初始数据
     */
    data: {
    },

    /**
     * 组件的方法列表
     */
    methods: {
      RefreshBtn(event) {
        let detail = event.detail;
        let option = {};
        this.triggerEvent('abnortap', detail, option);
      }
    }
    
})
